Welcome![Sign In][Sign Up]
Location:
Search - vc tcp

Search list

[WinSock-NDIStcp

Description: 一个简单的VC++ tcp 实现聊天 其中利用socket
Platform: | Size: 88736 | Author: 周翼 | Hits:

[TCP/IP stack飞鸽VC源码

Description: 著名的飞鸽传书VC的源码,供大家学习,不可作商业用途
Platform: | Size: 4168225 | Author: ifeng_xu@163.com | Hits:

[WinSock-NDISTCP实现客户服务器聊天程序

Description:

 

操作系统课程设计任务书


一、设计题目:多机进程通信

应用Socket进程通信技术编写聊天室程序,实现基于服务器的并发多机信息转发。如果各客户端在线则可以实时聊天、发送接收文件,如果某客户端离线,则发送给他的消息可由服务器端进行内容缓存,待重新连线后可以自动接收通过服务器转发的信息或文件。缓存与转发的控制算法可参考操作系统课程中生产者消费者进程同步方法、缓冲池技术等相关理论。
二、设计思路和功能的详细描述
采用TCP协议,所以属于客户机/服务器模式,因此需要聊天服务器端和聊天客户端两个程序,实现的功能是:任意一台装有客户端程序的计算机都可以通过服务器端的IP地址与服务器相连,然后进入聊天室与连接到服务器的其他客户进行聊天。当客户聊天结束时,可以点断开与服务器断开连接,以释放进程让其他等待的客户进入聊天室,本聊天室最大同时支持50个客户端的连接,如果服务器配置较高可以修改程序来增加同时连接数。
三、采用的方法、技术、运行环境及其配置
本聊天程序采用TCP协议,用VC++编写,属于客户机/服务器模式。采用了多线程的机制。其中使用windows Sockets实现多台计算机(多个进程)间的通信,SOCKET实际在计算机中提供了一个通信端口,可以通过这个端口与任何一个具有SOCKET接口的计算机通信。应用程序在网络上传输,接收的信息都通过这个SOCKET接口来实现。客户机/服务器模式中客户应用程序向服务器程序请求服务。一个服务程序通常在一个众所周知的地址监听对服务的请求,也就是说,服务进程一直处于休眠状态,直到一个客户对这个服务的地址提出了连接请求。在这个时刻,服务程序被“惊醒”并且为客户提供服务即对客户的请求作出适当的反应。本聊天程序就是基于这中思想实现的,程序分为两大部分:TCP聊天服务器端和TCP聊天客户端。两者都拥有各自的SOCKET接口,其中服务器端SOCKET接口需要绑定到固定地址上(实现语句:ock=Socket(AF_INET,SOCK_STREAM,0);),等待客户端的连接(实现语句:listen(sock,5);)。等待客户端的连接的过程就是通过多进程机制来实现的。
聊天程序是在VISUAL C++6.0上编译实现的,在WINDOWS2000,XP上测试运行成功。
对客户计算机配置无特殊要求,由于所设置的最大连接进程为50,所以对服务器要求也不高。
四、关键源程序及其详细的注释
<一>、服务器端
1
、Socket初始化
//
初始化对话框
BOOL CCSocketDlg::OnInitDialog()
{

count=0;

m_list.InsertColumn(0,"消息");

m_list.SetColumnWidth(0,435);

m_edit.SetLimitText(99);

.

.

.

.

 


Platform: | Size: 55808 | Author: lenjear | Hits:

[SourceCodeTCP服务器与客户端源代码

Description: 基于VC 6.0工程文件,测试TCP方式进行网络通信,包括服务器和客户端程序。
Platform: | Size: 138782 | Author: lbxu2008 | Hits:

[SourceCode基于VC的TCP聊天

Description: 基于VC的TCP聊天源码的实现.
Platform: | Size: 241281 | Author: zhcq8016@126.com | Hits:

[Internet-NetworkWinSocket-TCP

Description: 用VC写的winsock聊天程序,分服务器和客户机俩个程序,是学习winsock很好的源码!- Winsock writes which with VC chats the procedure, divides the server and a client pairs procedure, studies the winsock very good source code!
Platform: | Size: 2125824 | Author: 阿敏 | Hits:

[Internet-Network服务器客户tcpip

Description: VC++ 编写的基于TCP/IP协议的服务器客户端程序-VC compilation based on TCP/IP agreement server customer end procedure
Platform: | Size: 77824 | Author: cyz | Hits:

[Windows Developtcpip_terminal

Description: ip包监视器(VC)-ip packet monitors (VC)
Platform: | Size: 154624 | Author: 唯一 | Hits:

[Windows Developvc_NetTime

Description: 用TCP获得网路标准时间来设定您的PC时钟-using Internet standard TCP was time to set your PC clock
Platform: | Size: 12288 | Author: 叶凯 | Hits:

[Internet-Networkvchomwe_net

Description: 网络编程,主要是通讯开发:vc和tcp机制-network programming, mainly in telecommunications development : vc mechanism and tcp
Platform: | Size: 509952 | Author: 老吴 | Hits:

[Internet-Network用WINSOCK实现聊天室的VC

Description: Internet上可以提供一种叫IRC 的服务。使用者通过客户端的程序登录到IRC服务器上,就可以与登录在同一IRC服务器上的客户进行交谈,这也就是平常所说的聊天室。在这里,给出了一个在运行TCP/IP协议的网络上实现IRC服务的程序。-Internet can provide a service called IRC. Client users through the process log on to IRC servers, and can be logged on the same server on the IRC chat client, which is usually the chat rooms. Here is a running TCP/IP on the network to achieve the IRC service procedures.
Platform: | Size: 8192 | Author: 风清扬 | Hits:

[Internet-Network网络聊天:VC winsock-tcp

Description: 一个经典的socket套接字的程序!分为server和client两个部分! 利用CSocket发送消息!!值得新手学习socket的使用!-a classic socket socket procedures! Server and client divided into two parts! Use CSocket messaging! ! Newcomers should learn to use the socket!
Platform: | Size: 67584 | Author: teky | Hits:

[TCP/IP stack基于TCP的聊天室的简单实现_MyChat

Description: 基于TCP的简单的聊天室程序,适合初学者学习.用vc写的。-based on the simple TCP chat room procedures, suitable for beginners to learn. With vc writes.
Platform: | Size: 69632 | Author: 郑浩 | Hits:

[uCOSucos_vc

Description: ucos是一个非常优秀的嵌入式操作系统,但作者只提供了bc下测试与调试代码,非常难于调试与学习,特别是初学者。vc是windows下非常优秀的IDE,如果把ucos移植到vc下运行,将非常方便ucos的调试与学习,有利于于ucos的推广。此项目的目的是希望能够把ucos及其相关的文件系统ucfs,GUI界面ucgui,网络tcp/ip都移植过来,方便广大爱好者学习。版本历史:ucos_vc0.11 时间:20050409描述:继续移植了Genie shell for UCOS II,为下一步文件系统的实现做准备ucos_vc0.1:时间:20050403描述:移植了完整的ucos到vc下,实现了vc下的ucos多任务系统-CENTER is a very good embedded operating system, the authors provided only bc under test and debug code is very difficult to debug and learning, especially beginners. Vc under windows is excellent IDE, if transplanted to vc CENTER run, it will be quite easy CENTER debugging and learning, is conducive to the promotion CENTER. The objective of this project is to be able to give CENTER and its associated file system ucfs, ucgui GUI interface, network tcp/ip all transplant, the majority of enthusiasts facilitate learning. Version History : ucos_vc0.11 Time : 20050409 Description : to transplant the shell for UCOS Genie II, the next step for the realization of file system to prepare ucos_vc0.1 : Time : 20050403 Description : transplant a complete CENTER to vc, the achievement of the vc TRACK
Platform: | Size: 1072128 | Author: 无恒 | Hits:

[TCP/IP stackTCP

Description: 1.利用原始套接字实现简单的TCP协议分析器。 2.系统功能包括: 2.1 原始套接字与网卡邦定,并接收流经网卡的所有数据包; 2.2 对数据包进行分析以获得源IP地址和目的IP地址; 2.3 对TCP Segment进行分析以获得其首部详细信息; 2.4 显示分析结果 3 建议使用VC++ -tcp
Platform: | Size: 2877440 | Author: 刘震 | Hits:

[Internet-NetworkTCP

Description: 一个简单的TCP客户端和服务器端代码,服务器端接收数据并回传,VC编译,WINDOWS操作系统-A simple TCP client and server-side code, server-side data and return to receive, VC compiler, WINDOWS OS
Platform: | Size: 4096 | Author: recome | Hits:

[Internet-NetworkTCP

Description: vc++的TCP示例程序,其中包括客户端和服务器代码,可以帮助网络编程的初学者很直观的理解winsocket通信机制。-TCP coding example using VC++,very useful for the programer interest in winsocket
Platform: | Size: 6144 | Author: eric | Hits:

[TCP/IP stackWINSOCK-TCP

Description: VC++实现的TCP网络编程聊天程序,对于学习网络编程很有帮助-VC++ implementation of the TCP network programming chat program
Platform: | Size: 3860480 | Author: liqianzhu | Hits:

[Program docTCP-Select

Description: VC开发环境利用select 模型开发服务器-VC model development environment, development server using select
Platform: | Size: 158720 | Author: zhaozhpo | Hits:

[ISAPI-IEVC-TCP-Client-software

Description: VC TCP client software-a software witch can let much people to talk to each other,using TCP
Platform: | Size: 3809280 | Author: 陈先生 | Hits:
« 1 23 4 5 6 7 8 9 10 ... 42 »

CodeBus www.codebus.net